package xyz.ddlnt.servicemgclient.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import xyz.ddlnt.servicemgclient.client.fallback.CategoryFallbackFactory;
import xyz.ddlnt.servicemgclient.client.fallback.ExamQuestionFallbackFactory;
import xyz.ddlnt.servicemgclient.client.fallback.TechnologyFallbackFactory;

/**
 * @author ZZULI_SE 210910
 * @data 2025/4/29 22:24
 */
@Configuration
public class MgFallbackConfig {
    @Bean
    public CategoryFallbackFactory  categoryFallbackFactory() {
        return new CategoryFallbackFactory();
    }

    @Bean
    public TechnologyFallbackFactory technologyFallbackFactory() {
        return new TechnologyFallbackFactory();
    }

    @Bean
    public ExamQuestionFallbackFactory examQuestionFallbackFactory() {
        return new ExamQuestionFallbackFactory();
    }
}
